package j02fanxing;

class Fa{}
class Ch{}

class A<T>{}

public class J1 {
    public static void main(String[] args) {
        A<Fa> aFa = new A<>();
        A<Ch> aCh = new A<>();


        A<Fa> aFa2 = aFa;

        //新语法
//        aFa = aCh;

        System.out.println("==通配符==");
        A<?> ax = new A<Object>();
        A<?> ax2 = new A<Fa>();

        ax = new A<Ch>();
        System.out.println("==限制==");

    }
}
